package com.xxbb.chapter_1.dome1;

public class LightTravel {
	public static  void write() {
		//光运行速度
		int lightspeed=300000;
		long days;
		System.out.println("请输入天数：");
		//接收输入
		days =Long.parseLong(ScannerHelper.scannerInput());
		//求光速
		long seconds=days*24*60*60;
		System.out.println(days+"天，光运行"+seconds*lightspeed+"千米");
	}

}
